﻿using AutoMapper;
using BasicInformation.API.Application.Command.FuelCostsCommand;
using BasicInformation.API.Application.Command.LineCommand;
using BasicInformation.API.Application.Command.OutsourcingCommand;
using BasicInformation.API.Application.Command.OwnerCommand;
using BasicInformation.API.Application.Command.VehicleCommand;
using BasicInformation.Domain;

namespace BasicInformation.API.Extensions
{
    public class LineProfile: Profile
    {
        public LineProfile()
        {
            CreateMap<LineCreateCommand, Line>().ReverseMap();
            CreateMap<LineUpdateCommand, Line>().ReverseMap();
            CreateMap<VehicleCreateCommand,Vehicle>().ReverseMap();
            CreateMap<VehicleUpdateCommand, Vehicle>().ReverseMap();
            CreateMap<OwnerCreateCommand,Owner>().ReverseMap();
            CreateMap<OwnerUpdateCommand, Owner>().ReverseMap();
            CreateMap<OutsourcingCreateCommand, Outsourcing>().ReverseMap();
            CreateMap<OutsourcingUpdateCommand, Outsourcing>().ReverseMap();
            CreateMap<FuelCostsCreateCommand,FuelCosts>().ReverseMap();
            CreateMap<FuelCostsUpdateCommand, FuelCosts>().ReverseMap();
        }
    }
}
